﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using QRCoder;
using System.IO;
using System.Drawing;
namespace Farming.Application
{
    class Program
    {
        //static void Main()
        //{
        //    string content = "https://www.example.com";
        //    QRCodeGenerator qrGenerator = new QRCodeGenerator();
        //    QRCodeData qrCodeData = qrGenerator.CreateQrCode(content, QRCodeGenerator.ECCLevel.Q);
        //    QRCode qrCode = new QRCode(qrCodeData);
        //    Bitmap qrCodeImage = qrCode.GetGraphic(20);

        //    using (MemoryStream ms = new MemoryStream())
        //    {
        //        qrCodeImage.Save(ms, ImageFormat.Png);
        //        byte[] imageBytes = ms.ToArray();
        //        File.WriteAllBytes("qr_code.png", imageBytes);
        //    }
        //}
    }
}
